QuerySubset(ReadOnlySpan<int>, Span<int>, Type, Type, bool)

Method

Namespace: Ignis

Declared in: Ignis.IEntityManager


Queries an entity ID subset that have the specified components and populates the resulting Span.

Syntax

public ReadOnlySpan<int> QuerySubset(
	ReadOnlySpan<int> ids,
	Span<int> storage,
	Type component1,
	Type component2,
	bool checkExistence
)

Parameters

ids

Entity ID subset to check

checkExistence

Should the ID existence be checked

Returns

Slice of the original span that contain the query results. IDs that don't fit in the Span are skipped.


Back to index